package Date;

import cn.hutool.core.date.DatePattern;
import cn.hutool.core.date.DateUtil;
import model.People;
import org.junit.Test;

import java.util.Date;

public class demo {

    @Test
    public void demo(){
        Date a = new Date();
        String format = DateUtil.format(a, DatePattern.CHINESE_DATE_TIME_PATTERN);
        System.out.println(format);
    }


    @Test
    public void demo1(){
        People p = new People();
        Date createTime = p.getCreateTime();
        if (createTime == null){
            System.out.println("cyyy niubi wode宝贝");
        }
    }

    @Test
    public void demo2(){
        People p = new People();
        p.setName(null);
        System.out.println("shitutuya");
    }
}
